package won.user;

import won.model.Book;
import won.query.BookQuery;

import java.util.Date;
import java.util.Scanner;

import static java.lang.System.out;

public class Teacher extends AbstractUser {
    public Teacher(){

    }

    public Teacher(long id, String username, String password) {
        super(id, username, password);
    }

    @Override
    public void addBook() {
        Scanner input = new Scanner(System.in);
        System.out.println("********************Add new book********************");
        out.print("【1】 add academic book 【2】add non-academic book");
        String booktype = input.nextLine();
        out.print("Please input book name：");
        String bookName = input.nextLine();
        AbstractBook book = null;
        if("1".equals(booktype)){
            book = new AcademicBook(bookName, 15, date , "in", "a");

        }else{
            book = new NonAcademicBook(bookName, 15, date , "in", "b");
        }
        BookManager.addBook(book);
    }
    public void deleteBook(Book book){

    }
}
